﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.RestrictedUsage.CSharp.Compiler.IDE;

namespace CustomTypes.Mono
{
    
    public static class CSharpTextSelection
    {

        private static IDECompilerHost languageModel;

        public static IDECompilerHost LanguageModel
        {
            get
            {
                if (languageModel == null)
                {
                    try
                    {
                        languageModel = new IDECompilerHost();
                    }
                    catch
                    {
                    }
                }
                return languageModel;
            }
        }

    }
}
